/**
     * 
     */

package com.xyz.frame.service;

import com.xyz.frame.bean.app.param.PayParam;
import com.xyz.frame.bean.pay.PayInfoDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *  on 2018/09/15.
 */
public interface PayService {

    /**
     * 支付
     * @param userId
     * @param payParam
     * @return
     */
    PayInfoDto pay(String userId, PayParam payParam);

    @Transactional(rollbackFor = Exception.class)
    PayInfoDto noOrderPay(String userId, PayParam payParam);

    /**
     * 支付成功
     * @param payNo
     * @param bizPayNo
     * @return
     */
    List<String> paySuccess(String payNo, String bizPayNo);

}
